<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Untitled Document</title>
</head>

<body>
<div align="center">
  <h1>AS3GE 1.0</h1>
  <p>by Jeff Kesselman</p>
  <h2 align="left">License</h2>
  <h2 align="left">Usage</h2>
  <p align="left">AS3GE is a simple little game engine intended for use with Flash CS3. In order to use AS3GE you should create a new Flash AS3 document and set the Document Class to GameLoop. All the class files in the AS3GE distriubtion should be included in the project and placed in the project classpath. (The easiest way is just to unzip them into the root of the project.)</p>
  <p align="left">AS3GE supports a game model where each screen or game state is represented by a Flash KeyFrame.<br />
  Keyframes register an update function by use of the setUpdateFunction(...) method in their action script. After the updateFunction is called the frame will be automatically re-rendered.</p>
  <p align="left">The period of the calling of the update function can be set by calling the setUpdateTimerRate(...) method with a number of milliseconds between ticks. This is a target rate and may not be hit exactly on every frame. The update function gets passed the true time delta between its call and the previous call.</p>
  <p align="left">AS3GE supports a global polled input model. (In 1.0 it only supports keyboard input) using the InputHandler class. You obtain the input handler instance by calling the getInputHandler() method. The game requests a key be monitored by calling the listenToKey(...) method on the InputHandler instance. The listenToKey(...) method returns a KeyState object. The KeyState object is queried with the isDown() function to discover the current state of the key.</p>
  <p align="left">It is important to use the changeState(...) method to move from one KeyFrame to thge next. Using the flash goTo methods directly may produce unpredictable results.</p>
  <p align="left">&nbsp;</p>
  <p align="left">&nbsp;</p>
  <p align="left">&nbsp;</p>
  <p align="left">&nbsp;</p>
</div>
</body>
</html>
